package com.czh.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.czh.domain.ResponseResult;
import com.czh.domain.dto.RoleDto;
import com.czh.domain.dto.ChangeRoleStatusDto;
import com.czh.domain.dto.QueryRoleDto;
import com.czh.domain.entity.Role;
import com.czh.domain.vo.RolePageVo;
import com.czh.domain.vo.RoleVo;

import java.util.List;

/**
 * 角色信息表(Role)表服务接口
 *
 * @author makejava
 * @since 2024-03-28 20:53:33
 */
public interface RoleService extends IService<Role> {

    List<String> selectRoleKeyByUserId(Long id);

    ResponseResult<RolePageVo> getRoleLst(Integer pageNum, Integer pageSize, QueryRoleDto userDto);

    ResponseResult<Object> changeStatus(ChangeRoleStatusDto changeRoleStatusDto);

    ResponseResult<Object> addRole(RoleDto roleDto);

    ResponseResult<Object> deleteRole(Long id);

    ResponseResult<RoleVo> getRoleById(Long id);

    ResponseResult<Object> updateRole(RoleDto roleDto);


    ResponseResult<List<Role>> getAllRoleList();
}

